* {
    margin: 0;
    padding: 0
}

header,
main,
footer {
    /**
    居中，左右空白
    **/
    width: 1200px;
    margin: auto
}

body {
    font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif;
    color: black;
    background: #f5f5f5
}

a {
    color: #222;
    text-decoration: none;
}

a:hover {
    color: #f00;
}

header {
    display: flex;
    height: 50px;
    background: rgb(248, 248, 248);
    line-height: 50px;
    margin-top: 30px;
    margin-bottom: 30px;
}

header>div>img {
    margin-right: 250px;
    margin-left: 50px;
}

ul li {
    list-style: none;
}

nav {
    margin-right: 200px;
}

nav ul {
    text-align: center;
}

nav ul li {
    display: inline-block;
    font-size: 15px;
    position: relative;
    margin: 0 3px 0 0;
}

nav ul li a {
    display: block;
    padding: 0 20px;
}

nav ul li a:hover {
    background: #0088ff;
    color: #fff;
}

article {
    /*随笔*/
    width: 860px;
    float: left;
}

.blogs li {
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    position: relative;
}

.blogs li i {
    display: block;
    width: 150px;
    height: 120px;
    overflow: hidden;
    float: left;
    margin-right: 20px;
}

.blogs li i img {
    width: 100%;
    min-height: 100%;
    transition: .5s;
}

.blogs h2 {
    margin: 0 0 15px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-introduce {
    overflow: hidden;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2行多余的省略号*/
    font-size: 15px;
    color: gray;
    margin-bottom: 15px;
}

.blog-info {
    color: rgb(109, 106, 106);
    font-size: 15px;
}

.blog-info span {
    margin-right: 15px;
    position: relative;
    padding-left: 20px;
    line-height: 20px;
}

.blog-info span a {
    color: rgb(72, 72, 218);
}

.blog-info span a:hover {
    color: #e01109;
}

.blogs li:hover {
    /*点击阴影部分效果*/
    box-shadow: rgba(0, 0, 0, .1) 3px 5px 5px;
}

.blogs li:hover h2 {
    color: #F00
}

.blogs img:hover {
    transform: scale(1.5);
    opacity: 0.5;
}

aside {
    /*心情、日期、*/
    width: 320px;
    float: right;
}

#date-box {
    height: 320px;
}

.countdown {
    margin-bottom: 30px;
}

.aside_title {
    margin-bottom: 30px;
}

.paihang ol {
    padding: 0 20px 20px 40px;
}

.paihang ol li {
    margin-bottom: 20px;
    padding-left: 10px;
}

footer {
    width: 1200px;
    height: 160px;
    /* text-align: center; */
    clear: both;
    background: white;
    border-top: #00C1DE 5px solid;
    padding: 20px 0;
    color: #73777a;
    font-size: 14px;
}

footer:hover {
    box-shadow: rgba(0, 0, 0, .1) 3px 5px 5px;
}

.foot-box {
    overflow: hidden;
    float: left;
    margin-right: 20px
}

.foot-box li {
    float: left;
    margin: 0 10px;
    text-align: center
}

.foot-box img {
    height: 100px
}

.foot-box span {
    display: block;
}

.copying b {
    font-size: 16px;
    color: #00c1de;
}

.copying p {
    margin-bottom: 5px
}

footer a {
    color: #73777a;
}

footer a:hover {
    color: #00C1DE
}

.cd-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 40px;
    right: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: rgba(232, 98, 86, 0.8) url(../img/cd-top-arrow.svg) no-repeat center 50%;
    visibility: hidden;
    opacity: 0;
}

.cd-top {
    visibility: visible;
    opacity: 1;
}

.cd-top:hover {
    background-color: #e86256;
    opacity: 1;
}